add_mlir_dialect_library(MLIRBufferizationDialect
  AllocationOpInterface.cpp
  BufferizableOpInterface.cpp
  BufferizationOps.cpp
  BufferizationDialect.cpp

  ADDITIONAL_HEADER_DIRS
  ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Bufferization

  DEPENDS
  MLIRAllocationOpInterfaceIncGen
  MLIRBufferizationOpsIncGen

  LINK_LIBS PUBLIC
  MLIRAffineDialect
  MLIRDialect
  MLIRFuncDialect
  MLIRIR
  MLIRSparseTensorDialect
  MLIRTensorDialect
  MLIRMemRefDialect
  )
